import {Component, Input} from '@angular/core';
import {DynamicComponent} from '../../components/dynamic-component/dynamic-component.interface';

@Component({
  selector: 'ng-tools-safe-link',
  templateUrl: './safe-link.component.html',
  styleUrls: ['./safe-link.component.scss']
})
export class SafeLinkComponent implements DynamicComponent {
  dynamic: true;
  @Input() text: string;
  @Input() router: string;

  set data(values: any) {
    this.text = values.text;
    this.router = values.router;
  }

  constructor() {
  }

}
